#include <iostream>
#include <string>
using namespace std;
#define DEBUG

int main()
{
    #ifdef DEBUG
        freopen("./in.txt", "r", stdin);
        freopen("./out.txt", "w", stdout);
    #endif

    string str;
    cin >> str;
    // char st=str[0], en=str[str.size()-1];
    printf("%c", str[0]);
    
    for(int i=1; i<str.size()-1; i+=2)
        printf("%c", str[i]);
    printf("%c", str[str.size()-1]);
    puts("");
    return 0;
}